/* 实现ElementUI的按需导入 */
import Vue from 'vue'
import '@/assets/reset.min.css'
import 'element-ui/lib/theme-chalk/index.css'
import { Button, Link, Input, DatePicker, Form, FormItem, Table, TableColumn, Tag, Loading, Message, Dialog,Popconfirm } from 'element-ui'

Vue.use(Button)
    .use(Link)
    .use(Input)
    .use(DatePicker)
    .use(Form)
    .use(FormItem)
    .use(Table)
    .use(TableColumn)
    .use(Tag)
    .use(Loading.directive) //创建一个 “v-loading” 自定义指令
    .use(Dialog)
    .use(Popconfirm)

Vue.prototype.$message = Message